import { createRouter, createWebHistory } from 'vue-router'
// import Home from '../views/home/index.vue'
// import store from '../store'
// import axios from '../plugins/axios'

const routes = [{
        path: '/',
        redirect: 'goods',
    },
    {
        path: '/income',
        name: 'income',
        component: () =>
            import ( /* webpackChunkName: "income" */ '../views/income/index.vue'),
    },
    {
        path: '/invite',
        name: 'invite',
        component: () =>
            import ( /* webpackChunkName: "invite" */ '../views/invite.vue'),
    },
    {
        path: '/give-coupon',
        name: 'give-coupon',
        component: () =>
            import ( /* webpackChunkName: "give-coupon" */ '../views/give-coupon.vue'),
    },
    {
        path: '/show',
        name: 'show',
        component: () =>
            import ( /* webpackChunkName: "show" */ '../views/show/index.vue'),
    },
    {
        path: '/goods',
        name: 'goods',
        component: () =>
            import ( /* webpackChunkName: "goods" */ '../views/goods/index.vue'),
    },
    {
        path: '/activity',
        name: 'activity',
        component: () =>
            import ( /* webpackChunkName: "activity" */ '../views/activity/index.vue'),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router